import org.junit.Assert;
import org.junit.Test;

/*
    测试目标为trityp.Triang()方法
    测试对应的decision为trityp.Triang()中的
    if (Side1 <= 0 || Side2 <= 0 || Side3 <= 0)
        {
            triOut = 4;
            return (triOut);
        }
 */
public class McDcCoverage {
    @Test
    public void mcDcCoverageTest(){
        Assert.assertEquals(4,trityp.Triang(0,0,0));
        Assert.assertEquals(4,trityp.Triang(0,0,1));
        Assert.assertEquals(4,trityp.Triang(0,1,0));
        Assert.assertEquals(4,trityp.Triang(0,1,1));
        Assert.assertEquals(4,trityp.Triang(1,0,0));
        Assert.assertEquals(4,trityp.Triang(1,0,1));
        Assert.assertEquals(4,trityp.Triang(1,1,0));
        Assert.assertEquals(3,trityp.Triang(1,1,1));
    }
}
